home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Please help me debug this.
- Date: 14 Feb 1996 21:07:09 GMT
- Organization: OpenVision
- Message-ID: <4ftitt$h7@spanky.pls.ov.com>
- References: <4fq73t$inl@news-e1a.megaweb.com>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
-
- The problem is that you are using fgets to get your strings from
- your filter file. fgets includes the newline in the data copied
- from the file. To correct this, try:
-
- char *tp;
-
- if ((tp = strchr(fbuff, '\n')) != NULL)
- *tp = '\0';
-
- Fletcher.Glenn@ov.com
-
-